package com.zmc.order.infrastructure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zmc.common.utils.PageUtils;
import com.zmc.order.infrastructure.bean.query.OrderManageQuery;
import com.zmc.order.infrastructure.entity.OrderEntity;

import java.util.List;

/**
 * 订单
 *
 * @author zmc
 * @email
 * @date 2024-10-09 14:52:02
 */
public interface OrderService extends IService<OrderEntity> {

    OrderEntity getByOrderSn(String orderNo);

    PageUtils pageList(OrderManageQuery query);

    void updateStatus(String orderSn, Integer status);

    void updateOrderWhenSendGood(String orderSn, Integer status);

    void updateOrderWhenReceive(String orderSn, Integer status, Integer confirmStatus);

    void updateOrderWhenDelivery(String orderSn, Integer status);

    OrderEntity getLastWaitPayOrder();

    List<OrderEntity> queryUserOrderListByOrderSns(String memberId, List<String> orderSns);

    void updateStatusAndPayType(String orderSn, int status, String payType);


}

